import request from '@/request/request'

//用户登录请求
export const userLogin = ({userAccount, userPassword}: any) => {
  return request.post('/user/login',
    {
      userAccount,
      userPassword
    })
}

//用户注册请求
export const userRegister = ({checkPassword, userAccount, userPassword}: any) => {
  return request.post('/user/register',
    {
      checkPassword,
      userAccount,
      userPassword
    })
}
